package com.siblings.loan.sys.data.util

import android.content.Context
import android.content.pm.PackageManager

fun Context.checkPermissionsGranted(list: List<String>): Boolean {
    return !list.any {
        checkSelfPermission(it) != PackageManager.PERMISSION_GRANTED
    }
}

fun String?.safe(): String {
    if (this.isNullOrBlank()) return ""
    return this
}

fun String.lastPath(): String {
    return replace("/", "")
}


